{extend name='user/public/layout' /}
{block name='content'}
<style>
    .but18{margin:0 0 0 150px;color:#fff;cursor:pointer;}
</style>
<div class="overflow_h">
    <div class="screen">
        <div class="screen_box01 overflow_h">
            <ul>
                <li><a href="{:url('user.account/info')}">基本信息</a></li>
                <li><a href="{:url('user.account/password')}" class="on">修改密码</a></li>
                <li><a href="{:url('user.account/bind')}">绑定设置</a></li>
            </ul>
        </div>
    </div>
    <div class="user-nav">
        <form id="info_form" action="{:url('user.account/passwordDo')}" method="post">
            <div id="ordinaryPass" class="itemCon" style="display: block;">
                <ul class="formList">
                    <li>
                        <label><em class="red">*</em> 输入旧密码：</label>
                        <input type="password" class="inputStyle" id="oldPass" name="oldPass">
                    </li>
                    <li>
                        <label><em class="red">*</em> 输入新密码：</label>
                        <input type="password" class="inputStyle" id="newPass" name="newPass">
                    </li>
                    <li>
                        <label><em class="red">*</em> 新密码确认：</label>
                        <input type="password" class="inputStyle" id="newPass2" name="newPass2">
                    </li>
                    <li>
                        <label>&nbsp;</label>
                        <input type="submit" class="btnStyle" value="确 定">
                    </li>
                </ul>
            </div>
        </form>


    </div>
</div>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<script>
    $(function(){
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#oldPass").formValidator({onshow:'请填写原密码',onfocus:'请填写原密码'}).inputValidator({min:6,onerror:'密码至少由6个字符组成'});
        $("#newPass").formValidator({onshow:'请填写新密码',onfocus:'请填写新密码'}).inputValidator({min:6,onerror:'密码至少由6个字符组成'});
        $("#newPass2").formValidator({onfocus:"输入两次密码不同。",oncorrect:"密码输入一致"}).compareValidator({desid:"newPass",operateor:"=",onerror:"输入两次密码不同。"});

    });
</script>
{/block}